import { Controller, UseFilters, UseInterceptors, UsePipes, ValidationPipe, UseGuards } from '@nestjs/common';
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
import { Crud, CrudController } from '@nestjsx/crud';
import { VillageMeeting } from 'libs/db/entity/village-meeting.entity';
import { HttpExceptionFilter } from '../_filter/http-exception.filter';
import { LoggingInterceptor } from '../_interceptor/logging.interceptor';
import { VillageMeetingCrudOps } from './village-meeting-crud-ops';
import { VillageMeetingService } from './village-meeting.service';
import { AuthGuard } from '@nestjs/passport';


@Crud(VillageMeetingCrudOps)
@UseFilters(HttpExceptionFilter)
@UsePipes(ValidationPipe)
@UseInterceptors(LoggingInterceptor)
@UseGuards(AuthGuard('jwt-web'))
@ApiBearerAuth()
@ApiTags('发布管理 - 村会议信息')   //标签
@Controller('village-meeting')
export class VillageMeetingController implements CrudController<VillageMeeting> {
  constructor(public service: VillageMeetingService) {
  }
}
